<table id="attribute_table" ref="SrvAttribute" class="table" width="100%" border="0" cellspacing="1" cellpadding="0">
		<thead class="state-header">
		  <tr>
		  
		  	  <td  width="40" tdid="0" align="center">
			 	选择
			  </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"saId")||fields=="*"||(!fields && true)}}' tdid="1" ref="saId"   title="编号">编号
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"saHost")||fields=="*"||(!fields && true)}}' tdid="2" ref="saHost"   title="所属企业">所属企业
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"saParent")||fields=="*"||(!fields && true)}}' tdid="3" ref="saParent"   title="类型">类型
			 </td>
			 <td width="{{fields=='*'?'200':''}}" lz:if='{{lz.idin(fields,"saName")||fields=="*"||(!fields && true)}}' tdid="4" ref="saName" flagKey='true'  title="名称">名称
			 </td>
			 <td width="{{fields=='*'?'200':''}}" lz:if='{{lz.idin(fields,"saFlag")||fields=="*"||(!fields && true)}}' tdid="5" ref="saFlag"   title="标识">标识
			 </td>
			 <td width="{{fields=='*'?'200':''}}" lz:if='{{lz.idin(fields,"saData")||fields=="*"||(!fields && false)}}' tdid="6" ref="saData"   title="数据">数据
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"saStatus")||fields=="*"||(!fields && true)}}' tdid="7" ref="saStatus"   title="状态">状态
			 </td>
		 	<td lz:if="{{canAdd}}" width="50">&nbsp;</td>
			<td  width="135"  class="operation" tdid="8" ref="operation">
				&nbsp;
			</td>
		  </tr>
		 </thead>	
		 <tbody>
		 
		  <tr lz:for="{{list}}" id="{{item.saId}}"  tree="{{item.saParent}}">
		  	<td class="td-checkbox" align="center">
				<input class="check" name="check" type="checkbox" value="{{item.saId}}"/>
			</td>
			 
				<td lz:if='{{lz.idin(fields,"saId")||fields=="*"||(!fields && true)}}' ref="saId" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.saId$ || item.saId}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"saHost")||fields=="*"||(!fields && true)}}' ref="saHost" class="inc {{index%2==0?'odd':'even'}} td " relate="{{item.saHost}}">
					 
					 
					 	<a onclick="window.href('{{basePath}}admin/permissions/host.edit.html?key={{item.saHost}}')" href="javascript:void(0);">
					 	{{item.saHost$ || item.saHost}}</a>
				</td>
			 
				<td lz:if='{{lz.idin(fields,"saParent")||fields=="*"||(!fields && true)}}' ref="saParent" class="inc {{index%2==0?'odd':'even'}} td " relate="{{item.saParent}}">
					 
					 
					 	<a onclick="window.href('{{basePath}}admin/configurator/attribute.edit.html?key={{item.saParent}}')" href="javascript:void(0);">
					 	{{item.saParent$ || item.saParent}}</a>
				</td>
			 
				<td lz:if='{{lz.idin(fields,"saName")||fields=="*"||(!fields && true)}}' ref="saName" class="inc {{index%2==0?'odd':'even'}} td  node">
					 	<a href="?desp={{desp+1}}&saParent={{item.saId}}" class="icon tree-more treenode" style="margin-left:{{(desp+0)*32}}px;display:inline-block;vertical-align:middle;width:16px;height:16px;"></a>
					 
					 
					 	{{item.saName$ || item.saName}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"saFlag")||fields=="*"||(!fields && true)}}' ref="saFlag" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.saFlag$ || item.saFlag}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"saData")||fields=="*"||(!fields && false)}}' ref="saData" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.saData$ || item.saData}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"saStatus")||fields=="*"||(!fields && true)}}' ref="saStatus" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.saStatus$ || item.saStatus}}
				</td>
		 	<td lz:if="{{canAdd}}" width="50">
				<a onclick='navigate("/admin/configurator/attribute.edit.html",{edittype:"insert",parenter:"{{item.id}}"},window)' href="javascript:void(0);">添加</a>
			</td>
			<td class="operation {{index%2==0?'odd':'even'}}">
				<a lz:if="{{canEdit}}" onclick='navigate("/admin/configurator/attribute.edit.html",{edittype:"update",id:"{{item.id}}"},window)' href="javascript:void(0)">修改</a>
				<a lz:if="{{canDel}}" onclick="deleteAttribute('{{item.saId}}','{{item.saName}}')" href="javascript:void(0);">删除</a>
				<a lz:if="{{canView}}" class="inc-h" onclick='navigate("/admin/configurator/attribute.edit.html",{edittype:"detail",id:"{{item.id}}"},window)' href="javascript:void(0);">详情</a>
			</td>
		  </tr>
		 
		 </tbody>
		 		 
	  </table>